#include "Graphic_Module.h"

Graphic_Module::Graphic_Module(Anim_Holder & M,std::string curst,MainGraphic &mg)
    : GraphicComponent(mg),module(M)
{
    current_state=curst;
    morph=false;
    current_morph="vide";
    Mgraph=&mg;
}
Graphic_Module::Graphic_Module(Anim_Holder & M,std::string curst,std::string curmor,MainGraphic &mg)
    : GraphicComponent(mg),module(M)
{
    current_state=curst;
    morph=true;
    current_morph=curmor;
    Mgraph=&mg;
}

void Graphic_Module::SendData(){
    module.Send_Statut(current_state);
    if (morph) {
        module.Send_Morphe(current_morph);
        }
}


Graphic_Module::~Graphic_Module()
{
    //dtor
}

